export default class share {
    palette(src) {
        return ({
            width: '618rpx',
            height: '866rpx',
            background: '#fff',
            views: [
                {
                    type: 'image',
                    url: src,
                    css: {
                      width: '618rpx',
                      height: `${imgheight}rpx`,
                    },
                },
                {
                    type: 'text',
                    text: 'PAPN健康管理',
                    css: [{
                        fontSize: '30rpx',
                        left: `${margin}rpx`,
                        top: `${imgheight + 30}rpx`,
                        color:'#000'
                    }]
                },
                {
                    type: 'text',
                    text: 'PAPN健康管理是一款全面的健康管理软件',
                    css: [{
                        top: `${imgheight + 80}rpx`,
                        color:'#000'
                    },common,]
                },
                {
                    type: 'text',
                    text: '其中包括：体重，健康指标，血糖，血脂，血压等功能',
                    css: [{
                        top: `${imgheight + 100}rpx`,
                        color:'#000'
                    },common]
                },
                {
                    type: 'text',
                    text: '(识别图中二维码为健康加油)',
                    css: [{
                        top: `${imgheight + 135}rpx`,
                        color:'#9d9d9d'
                    },common]
                },
                {
                    type: 'image',
                    url: '/resources/my-image/qr.png',
                    css: {
                      width: '116rpx',
                      height: '116rpx',
                      top: `${imgheight + 30}rpx`,
                      right: '25rpx'
                    },
                }
            ],
        });
    }
}

const imgheight = 686;
const margin = 25;
const common = {
    left: `${margin}rpx`,
    fontSize: '18rpx',
};